#include <bits/stdc++.h>
// 2025/02/25
// tag: 
// Author: Forever
using namespace std;

using int64 = int64_t;
signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    string s;
    cin >> s;
    int a = 0, b = 0, c = 0, flag = 0;
    for (int i = 0; i < s.size(); i++){
        if (s[i] == '|'){
            if (flag == 0)
                a++;
            else if (flag == 1)
                b++;
            else
                c++;
        }
        else
            flag++;
    }
    if (abs(a + b - c) > 2 || abs(a + b - c) == 1)
        cout << "Impossible" << endl;
    else{
        if (a + b - c == 0)
            cout << s << endl;
        else if (a + b - c == 2){
            if (a > b)
                a--, c++;
            else
                b--, c++;
            for (int i = 0; i < a; i++)
                cout << "|";
            cout << "+";
            for (int i = 0; i < b; i++)
                cout << "|";
            cout << "=";
            for (int i = 0; i < c; i++)
                cout << "|";
        }
        else{
            c--, a++;
            for (int i = 0; i < a; i++)
                cout << "|";
            cout << "+";
            for (int i = 0; i < b; i++)
                cout << "|";
            cout << "=";
            for (int i = 0; i < c; i++)
                cout << "|";
        }
    }
    return 0;
}
